﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Miao
{
    public class ConditionCallHandle : Handle
    {

        internal Action call;
        internal Func<bool> condition;


        internal ConditionCallHandle(Action call, Func<bool> condition)
        {
            onFinished += () => MiaoRuntime.Updater.RemoveConditionCall(this);

            this.call = call;
            this.condition = condition;
        }
    }
}
